import Vue from "vue";
import App from "./App.vue";
import router from "./router";

// 完整引入elemtui组件
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

// import "../plugins/element" 按需引入

import service from "./services.js";
import echarts from "echarts";
Vue.config.productionTip = false;
Vue.prototype.service = service; //挂载到原型，可以在全局使用
Vue.prototype.$echarts = echarts;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
